package com.springboot.cloud.auth.authentication.provider;

import com.springboot.cloud.common.core.entity.vo.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
@Slf4j
public class UserProviderFallBack implements UserProvider {
    @Override
    public Result<List<String>> getUserNamesByRoleId(String roleId) {
        log.debug("远程服务不可用");
        return Result.success(new ArrayList<>());
    }
}
